home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / business / wincheck.zip / WCMAKE.EXE / DDE.TXT < prev    next >
Text File  |  1991-10-05  |  8KB  |  192 lines

  1. DDE Command Set
  2.  
  3. **************************************************************************
  4. *                                                                        *
  5. *                     PART 1: DDE Request Commands                       *
  6. *                                                                        *
  7. **************************************************************************
  8.  
  9. Command  Command Action     Parameter(s)    Param  Action
  10. ==========================================================================
  11. GETACCOUNTS: Get Open Accounts
  12.  
  13. GETREG:  Get Register       M=mm            Specify Month
  14.                             Y=yy            Specify Year        
  15.                             F=All           Show all (no filter, default)
  16.                             F=Cleared       Show Cleared
  17.                             F=Uncleared     Show Uncleared
  18.                             F=Credit        Show Credit
  19.                             F=Debit         Show Debit
  20.  
  21. Example Usages in WinWord:
  22.  
  23. Gets entire register for current month:
  24. ---------------------------------------
  25.   {dde WinCheck TUT GetReg}     
  26.  
  27. Gets May 91 Register:
  28. ---------------------------------------
  29.  
  30.   {dde WinCheck TUT GetReg,m=05,y=91}
  31.  
  32. Gets May 91 Register, cleared trans only:
  33. ---------------------------------------
  34.  
  35.   {dde WinCheck TUT GetReg,m=05,y=91,f=cleared}
  36.  
  37. Gets May 91 Register, cleared debits only:
  38. ---------------------------------------
  39.  
  40.   {dde WinCheck TUT GetReg,m=05,y=91,f=cleared,f=debit}
  41.  
  42.  
  43. Command         Command Action     Parameter(s)    Param  Action
  44. ==========================================================================
  45. GETCATEGORIES:  Guess?             none
  46.  
  47. Example Usage in WinWord
  48.  
  49.   {dde WinCheck TUT GetCategories}     
  50.  
  51.  
  52.  
  53. Command     Command Action     Parameter(s)    Param  Action
  54. ==========================================================================
  55. GETCOMMON   List Common        R=All           Show all Dates Common (default)
  56.             Transactions       R=ll-hh         Show Commons between ll and hh days
  57.                                F=All           Show both cleared and uncleared
  58.                                F=Cleared       Show Cleared
  59.                                F=Uncleared     Show Uncleared
  60.  
  61. Example Usages in WinWord
  62.  
  63. Gets all Common Transactions
  64. ---------------------------------------
  65.  
  66.   {dde WinCheck TUT GetCommon}
  67.  
  68. Gets all Common Transactions that debit
  69. ---------------------------------------
  70.  
  71.   {dde WinCheck TUT GetCommon,f=debit}
  72.  
  73. Gets all Common Transactions that happen
  74. from the 1st to the 15th of the month
  75. ---------------------------------------
  76.  
  77.   {dde WinCheck TUT GetCommon,r=1-15}
  78.  
  79. Gets all Common Transactions that happen
  80. from the 1st to the 15th of the month,
  81. and credit the account
  82. ---------------------------------------
  83.  
  84.   {dde WinCheck TUT GetCommon,r=1-15,f=credit}
  85.  
  86. **************************************************************************
  87. *                                                                        *
  88. *                     PART 2: DDE Execute Commands                       *
  89. *                                                                        *
  90. *         If a parameter has a space in it, use quotes.  For example,    *                                                           
  91. *                                                                        *
  92. *                     P=Shorewood Apartments                             *                                  
  93. *                                                                        *
  94. *                       is incorrect.  Use                               *
  95. *                                                                        *
  96. *                     P="Shorewood Apartments"                           *                                    
  97. *                                                                        *
  98. **************************************************************************
  99.  
  100. Command     Command Action     Parameter(s)    Param  Action
  101. ==========================================================================
  102. WRITECHECK  Write              D=mm/dd/yy      Specify Date
  103.             a Check            T=dddd.cc       Specify Amt
  104.                                C=X             Specify Cleared
  105.                                N=###           Specify check Number
  106.                                P=ppppppp       Specify Payee
  107.                                M=mmmmm         Specify Memo1
  108.                                M2=mmmmm        Specify Memo2
  109.                                L=ccccc:ssss    Specify Category
  110.                                $T=n*ddd.cc     Specify Split #n amount   (max 32)
  111.                                $L=n*ddd.cc     Specify Split #n category (max 32)
  112.                                TO=ttt          "To" part of Address
  113.                                ADDR=sss        Street Address
  114.                                CITY=ccc        City
  115.                                STATE=ss        State
  116.                                ZIP=zzzz        Zip
  117.                                PRINT           Prints this check
  118.  
  119.  
  120. Example: To make WinCheck write a check for 580.00 to shorewoods,
  121.          category rent, on the current date, current check #:
  122.  
  123.   [WriteCheck:p="Shorewood Apartments",t=580.00,l=Rent]
  124.  
  125.  
  126. Example: To make WinCheck write a check for 580.00 to shorewoods,
  127.          category rent, on the current date, current check #, and print it:
  128.  
  129.   [WriteCheck:p="Shorewood Apartments",t=580.00,l=Rent,print]
  130.  
  131. Command     Command Action     Parameter(s)    Param  Action
  132. ==========================================================================
  133. CDEPOSIT     Make a          Same as WRITECHECK
  134. SDEPOSIT     deposit
  135.  
  136.  
  137. Example: To make WinCheck make a deposit for 1000, split across
  138.          "Band Income" and "Payroll", on May 15, 1991:
  139.  
  140.   [CDeposit:t=1000.00,$T=1*450.00,$L=1*"Band Income",$T=2*550.00,$L=2*Payroll,
  141.    D=05/15/91]
  142.                 
  143.  
  144.  
  145. Command     Command Action     Parameter(s)    Param  Action
  146. ==========================================================================
  147. CMISC       Make up your    Same as WRITECHECK, but add:
  148. SMISC       Own               
  149.                             DESC=Description
  150.  
  151.  
  152. Example: To make WinCheck enter Service Fees for 6.50 on June 12, 1991.
  153.  
  154.   [CMisc:t=6.50,Desc="Service Fees",D=06/12/91]
  155.  
  156.  
  157. Command     Command Action     Parameter(s)    Param  Action
  158. ==========================================================================
  159. REGISTERADDON
  160.  
  161. The App will register itself by using the following DDE Execute command:
  162.  
  163.   [RegisterAddOn:e="<exec>",d="<desc>",h="<handle,handle>",c="<class>",s="<sl>"]
  164.  
  165. Where:
  166.  
  167.   <exec>          This is the line WinCheck will pass to WinExec after
  168.                   it has been registered.  The user will not need to
  169.                   re-install the app a second time.
  170.  
  171.   <desc>          This is the text that goes on a menu line
  172.  
  173.   <handle,handle> First handle is handle of application add-on
  174.                   Second handle is the DDE conversation handle so
  175.                   WinCheck can drive it if needed.
  176.  
  177.   <class>         This is the class name of the first handle above.
  178.                   Sanity check to make sure that the handle above has
  179.                   not been re-assigned to something else.
  180.  
  181.   <sl>            This will be displayed in the status line
  182.  
  183.   Example:
  184.  
  185.   [RegisterAddOn:e="payroll.exe",d="Payroll Check",h="1412,1242",c="clsPayRoll",s="Payroll"]
  186.  
  187.  
  188. NOTE:
  189.  
  190.   The example program PAYROLL, written in Visual Basic demonstrates using
  191.   the REGISTERADDON DDE Call.
  192.